package org.springframework.aop;

/**
 * <p>@description: 类型过滤器</p>
 *
 * @author yangshuang
 * @version 1.0
 * @date 2019/2/19 22:47
 */
public interface ClassFilter {


    /**
     * Should the pointcut apply to the given interface or target class?
     * @param clazz the candidate target class
     * @return whether the advice should apply to the given target class
     */

    /**
     * 判定
     * @param clazz
     * @return
     */
    boolean matches(Class<?> clazz);


    /**
     * Canonical instance of a ClassFilter that matches all classes.
     */
    ClassFilter TRUE = TrueClassFilter.INSTANCE;
}
